package top.hcode.hoj.service.oj;

import top.hcode.hoj.common.result.CommonResult;
import top.hcode.hoj.pojo.entity.user.Major;

import java.util.List;

public interface MajorService {
    CommonResult<List<Major>> depfandmajor(String oj,String selectedId);

    CommonResult<List<Major>> getLits();

    CommonResult<Void> addmajor(Major major);

    CommonResult<Void> updatemajor(Major major);

    int deleteMojor(String id);

    CommonResult<Void> deletemajor(Major major);
}
